const getMiniProgramCode = require('./getMiniProgramCode/index')
const sendSMS = require('./sendSMS/index')
const randomString = require('./randomString/index')

// 云函数入口函数
exports.main = async (event, context) => {
  switch (event.type) {
    case 'getMiniProgramCode':
      return await getMiniProgramCode.main(event, context)
    case 'sendSMS':
      return await sendSMS.main(event, context)
    case 'randomString':
      return await randomString.main(event, context)
  }
}